/* 深色主题变量 */
:root {
    --bg-dark: #0f172a;
    --card-bg: #1e1e1e;
    --primary: #bb86fc;
    --secondary: #03dac6;
    --text: #e0e0e0;
    --error: #cf6679;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image:
            radial-gradient(circle at 10% 20%, rgba(40, 40, 60, 0.1) 0%, transparent 20%),
            radial-gradient(circle at 90% 80%, rgba(60, 40, 80, 0.1) 0%, transparent 20%);
}

/* 头部导航样式 */
.header {
    padding: 20px 40px;
}

.home-btn {
    background: none;
    border: 1px solid var(--primary);
    color: var(--text);
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.home-btn:hover {
    background-color: rgba(187, 134, 252, 0.1);
    transform: translateY(-2px);
}

/* 主内容区域 */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.error-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    color: var(--error);
    animation: pulse 2s infinite;
}

.error-icon-img {
    width: 30%;
    height: auto;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 600;
}

.error-message {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.9;
}

.server-terminal {
    background-color: #000;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
    font-family: 'Courier New', monospace;
    max-height: 200px;
    overflow-y: auto;
}

.terminal-line {
    margin-bottom: 8px;
    color: var(--secondary);
}

.terminal-line.error {
    color: var(--error);
}

.audio-controls {
    margin-top: 30px;
}

.audio-btn {
    background: linear-gradient(135deg, var(--primary), #6200ea);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(187, 134, 252, 0.3);
}

.audio-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(187, 134, 252, 0.4);
}

.audio-btn:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 页脚样式 */
.footer {
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 动画效果 */
@keyframes pulse {
    0% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.7; transform: scale(1); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .error-card {
        padding: 25px;
    }

    h1 {
        font-size: 2rem;
    }

    .error-icon {
        font-size: 4rem;
    }
}